<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Room_maintainAction extends CommonAction {
    public function _filter(&$map) {
        $map['type'] = empty($_GET['type'])?0:$_GET['type'] ;
    }
    //打扫
    public function indexc(){
        $this->redirect("Room_maintain/index/type/0");
    }
    //维修
    public function indexm(){
        $this->redirect("Room_maintain/index/type/1");
    }

    public function _before_add(){
        $this->assign('rooms',M('Room')->where('status = 1')->findAll() );
    }
}
?>
